AMD IOMMU: remove currently non-functioning guest iommu feature
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Thu, 2 Jun 2016 11:12:35 +0000 (13:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 2 Jun 2016 11:12:35 +0000 (13:12 +0200)
commit181677977fc35ddb848ae4d440fbb72e8afc8a1e
tree75ea11a04f4d4932a7ae31907f00cdc47d40999c
parent95dc05bb04b0737181a27f9469c69ee0e902f350
AMD IOMMU: remove currently non-functioning guest iommu feature

The guest IOMMU feature is currently not functioning. However,
the current guest_iommu_init() is causing issue when it tries to
register mmio handler because the it is currently called by the
following code path:

  arch/x86/domain.c: arch_domain_create()
    ]- drivers/passthrough/iommu.c: iommu_domain_init()
      |- drivers/passthrough/amd/pci_amd_iommu.c: amd_iommu_domain_init();
        |- drivers/passthrough/amd/iommu_guest.c: guest_iommu_init()

At this point, the hvm_domain_initialised() has not been called.
So register_mmio_handler() in guest_iommu_init() silently fails.

This patch removes the guest IOMMU feature for now until we can properly
support it.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/drivers/passthrough/amd/pci_amd_iommu.c